using System.Drawing;
using System.Windows.Forms;

class Program {
    static void Main(){
        // formRun();
        // twoForm();
        formAttr();
        
    }

    static void formRun(){
         // 创建窗口
        Form form = new Form();
        // form.Show();
         // 启动应用
        Application.Run(form);
    }

    static void twoForm(){
         // 创建窗口
        Form form = new Form();
        // form.Show();

        Form form2 = new Form();

        form.Text = "Form";

        form2.Text = "Form2";
        form2.Show();
        // 启动应用
        Application.Run(form);

        MessageBox.Show("app stop");
    }

    static void formAttr(){
        Form form = new Form();

        form.Text = "Form";
        form.BackColor = Color.Red;
        form.Width *= 2;
        form.Height /= 2;
        form.FormBorderStyle = FormBorderStyle.FixedSingle;
        form.MaximizeBox = false;
        form.StartPosition = FormStartPosition.CenterScreen;

        Application.Run(form);
    }
}